package com.dayaokeji.server_api.domain;

import android.text.TextUtils;

import java.io.Serializable;

/**
 * Created by Zeno on 2017/10/3.
 */

public class FileInfo implements Serializable{
    private static final long serialVersionUID = 8252138048247893746L;

    public static final Integer NOT_AD_TAG = -1;
    public static final Integer AD_TAG = 1; // 广告tag

    /**
     * id : id
     * type : 类型
     * url : url
     * extension : 拓展名
     * description : 描述
     * function : 功能
     * createTime : 创建时间
     * createUser : 创建者
     * relId : 关系id
     * relType : 关系类型
     */

    private String id;
    private String type;
    private String url;
    private String name;
    private String extension;
    private String description;
    private String function;
    private String createTime;
    private String createUser;
    private String relId;
    private String relType;
    private long size;

    public String getId() {
        return TextUtils.isEmpty(id) ? "" : id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getExtension() {
        return extension;
    }

    public void setExtension(String extension) {
        this.extension = extension;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getFunction() {
        return function;
    }

    public void setFunction(String function) {
        this.function = function;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public String getRelId() {
        return relId;
    }

    public void setRelId(String relId) {
        this.relId = relId;
    }

    public String getRelType() {
        return relType;
    }

    public void setRelType(String relType) {
        this.relType = relType;
    }

    public long getSize() {
        return size;
    }

    public void setSize(long size) {
        this.size = size;
    }

}
